From: Sam Reed Date: Fri, 1 Apr 2011 17:29:15 +0000 (+0000) Subject: Followup r84825 X-Git-Tag: 1.31.0-rc.0~31094 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=f373e63255f15ccb42a8ef11e8a4364febf8e182;p=lhc%2Fweb%2Fwiklou.git Followup r84825 Allow obtaining of an import token if users have the importupload right --- diff --git a/includes/api/ApiQueryInfo.php b/includes/api/ApiQueryInfo.php index 5b0d3255a8..8a6e570421 100644 --- a/includes/api/ApiQueryInfo.php +++ b/includes/api/ApiQueryInfo.php @@ -204,7 +204,7 @@ class ApiQueryInfo extends ApiQueryBase { public static function getImportToken( $pageid, $title ) { global $wgUser; - if ( !$wgUser->isAllowed( 'import' ) ) { + if ( !$wgUser->isAllowedAny( 'import', 'importupload' ) ) { return false; }